<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        main {
            /* display: flex; */
            height: 100vh;
            width: 100vw;
            scroll-snap-type: y mandatory;
            overflow: scroll;
        } 
        section {
            scroll-snap-align: start;
            width: 100vw;
            height: 100vh;
            /* flex-shrink: 0; */
        }
        .one {
            background-color: blue;
        }
        .two {
            background-color: brown;
        }
    </style>
    <title>Scroll Snap</title>
</head>
<body>
    <main>
        <main>
            <section class="one"></section>
            <section class="two"></section>
            <section class="one"></section>
            <section class="two"></section>
            <section class="one"></section>
            <section class="two"></section>
        </main>
    </div>
</body>
</html>